Set-Based Analysis for Logic Programming and Tree Automata
نویسندگان
چکیده
L'analyse statique de programmes vise a extraire de ceux-ci des propri et es, permettant des implantations plus eecaces et plus s^ ures. Une des propri et es pouvant se r ev eler in eressante est la s emantique "computationnelle", c'est-a-dire ce que calcule le programme. Pour des raisons de d ecidabilit e, seule une approximation de cette s emantique peut ^ etre consid er ee. L'analyse ensem-bliste Hei92a] est une m ethode a la fois el egante et pr ecise permettant le cal-cul d'une telle approximation. Dans le cadre de la programmation logique, celle-ci peut ^ etre consid er ee comme de l'inf erence de type (au sens de MR85]). Dans FSVY91], une pr esentation plus simple de l'analyse ensembliste est pro-pos ee : celle-ci est bas ee sur des transformations de programmes logiques et des algorithmes op erant sur des automates d'arbres alternant. Cependant, les auteurs ne traitent principalement que de la v eriication de type (i:e: le test d'appartenance a la s emantique approch ee du programme). Nous pr esentons dans cet article une nouvelle m ethode d'analyse ensembliste en r eutilisant la transformation de programmes majeure propos ee dans FSVY91]. Les automates d'arbres seront notre outil pour a la fois calculer et r epr esenter le r esultat de l'analyse ensembliste. Ceci permet une approche globale et coh erente de l'analyse ensembliste tant en conservant la simplicit e de l'approche pr esent ee dans FSVY91] et donne une caract erisation de la complexit e a la fois du prob leme et de notre m ethode. De plus, l'utilisation des automates d'arbres devrait permettre une implantation eecace, contrairement aux conclusions de FSVY91]. Abstract Compile-time program analysis aims to extract from a program properties useful for eecient implementations and sofware veriication. A property of interest is the computional semantics of a program. For decidability reasons, only an approximation of this semantics can be computed. Set-based analysis Hei92a] provides an elegant and accurate method for this. In the logic programming framework, this computation can be related to type inference MR85]. In FSVY91], a simpler presentation based on program transformation and algorithms on alternating tree automata is proposed. Unfortunately, the authors focussed on type checking (i:e: a membership test to the approximate semantics). We propose in this paper a new method to achieve set-based analysis reu-sing the main transformation described in FSVY91]. The main tool for both computation and representation of …
منابع مشابه
TREE AUTOMATA BASED ON COMPLETE RESIDUATED LATTICE-VALUED LOGIC: REDUCTION ALGORITHM AND DECISION PROBLEMS
In this paper, at first we define the concepts of response function and accessible states of a complete residuated lattice-valued (for simplicity we write $mathcal{L}$-valued) tree automaton with a threshold $c.$ Then, related to these concepts, we prove some lemmas and theorems that are applied in considering some decision problems such as finiteness-value and emptiness-value of recognizable t...
متن کاملAbstract Interpretation over Non-deterministic Finite Tree Automata for Set-Based Analysis of Logic Programs
Interpretation over Non-Deterministic Finite Tree Automata for Set-Based Analysis of Logic Programs John P. Gallagher German Puebla Abstract Interpretation over Non-Deterministic Finite TreeInterpretation over Non-Deterministic Finite Tree Automata for Set-Based Analysis of Logic Programs John P. Gallagher and Germ an Puebla 1 University of Bristol, Dept. of Computer Science, BS8 1UB Bristol, U...
متن کاملRepresenting Constraints with Automata
In this paper we describe an approach to constraint-based syntactic theories in terms of finite tree automata. The solutions to constraints expressed in weak monadic second order (MSO) logic are represented by tree automata recognizing the assignments which make the formulas true. We show that this allows an efficient representation of knowledge about the content of constraints which can be use...
متن کاملDEA common set of weights based on a multi objective Fractional Programming
Data envelopment analysis operates as a tool for appraising the relative efficiency of a set of homogenous decision making units. This methodology is applied widely in different contexts. Regarding to its logic, DEA allows each DMU to take its optimal weight in comparison with other DMUs while a similar condition is considered for other units. This feature is a bilabial characteri...
متن کاملSprachtheoretische Grundlagen F Ur Die Computer Linguistik Frank Morawietz : Monadic Second Order Logic, Tree Automata and Constraint Logic Programming Monadic Second Order Logic, Tree Automata and Constraint Logic Programming
In this paper we present a rst step toward the development of a constraint logic programming (clp) language R(MSO) based on monadic second order (mso) logic. We apply the scheme proposed by HH ohfeld and Smolka (1988) to obtain a relational extension of mso logic with a corresponding sound and complete operational semantics. The solutions to constraints expressed in monadic second order logic a...
متن کاملAlternating Regular Tree Grammars in the Framework of Lattice-Valued Logic
In this paper, two different ways of introducing alternation for lattice-valued (referred to as {L}valued) regular tree grammars and {L}valued top-down tree automata are compared. One is the way which defines the alternating regular tree grammar, i.e., alternation is governed by the non-terminals of the grammar and the other is the way which combines state with alternation. The first way is ta...
متن کامل